package com.web.pojo.dto;

import java.io.Serializable;

/**
 * @Author: wws
 * describe:
 */

public class ScheduleDTO implements Serializable {

    private byte startingTimeHour;//开启时长，小时
    private byte startingTimeMinute;//开启时长，分钟
    private byte openTimeTimeHour;//持续时长，小时
    private byte openTimeTimeMinute;//持续时长，分钟

    public ScheduleDTO() {
    }

    public ScheduleDTO(byte[] bytes) {
        this.startingTimeHour = bytes[0];
        this.startingTimeMinute = bytes[1];
        this.openTimeTimeHour = bytes[2];
        this.openTimeTimeMinute = bytes[3];
    }

    public ScheduleDTO(byte startingTimeHour, byte startingTimeMinute, byte openTimeTimeHour, byte openTimeTimeMinute) {
        this.startingTimeHour = startingTimeHour;
        this.startingTimeMinute = startingTimeMinute;
        this.openTimeTimeHour = openTimeTimeHour;
        this.openTimeTimeMinute = openTimeTimeMinute;
    }

    public byte getStartingTimeHour() {
        return startingTimeHour;
    }

    public void setStartingTimeHour(byte startingTimeHour) {
        this.startingTimeHour = startingTimeHour;
    }

    public byte getStartingTimeMinute() {
        return startingTimeMinute;
    }

    public void setStartingTimeMinute(byte startingTimeMinute) {
        this.startingTimeMinute = startingTimeMinute;
    }

    public byte getOpenTimeTimeHour() {
        return openTimeTimeHour;
    }

    public void setOpenTimeTimeHour(byte openTimeTimeHour) {
        this.openTimeTimeHour = openTimeTimeHour;
    }

    public byte getOpenTimeTimeMinute() {
        return openTimeTimeMinute;
    }

    public void setOpenTimeTimeMinute(byte openTimeTimeMinute) {
        this.openTimeTimeMinute = openTimeTimeMinute;
    }

    @Override
    public String toString() {
        return "ScheduleDTO{" +
                "startingTimeHour=" + startingTimeHour +
                ", startingTimeMinute=" + startingTimeMinute +
                ", openTimeTimeHour=" + openTimeTimeHour +
                ", openTimeTimeMinute=" + openTimeTimeMinute +
                '}';
    }
}
